<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>vue-router</title>
  </head>
  <body>
    <div id="app">
      <router-link to="test">Model8</router-link>
      <router-view></router-view>
    </div>
    <script src="../node_modules/vue/dist/vue.js"></script>
    <script src="../node_modules/vue-router/dist/vue-router.js"></script>
    <script>
      const Model8 = {
        template: `
            <div>
            这是Model18
            </div>
            `,
      }
      const luyou = new VueRouter({
        routes: [{ path: '/test', component: Model8 }],
      })
      const vm = new Vue({ el: '#app', data: {}, router: luyou })
    </script>
  </body>
</html>
